#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

CPPFLAGS += -I/usr/include/mumps_seq
LDFLAGS += -llapack -lblas
DEB_CONFIGURE_EXTRA_FLAGS += --enable-static \
							 --with-mumps-incdir=/usr/include \
							 --with-mumps-lib=-ldmumps

binary-install/coinor-libipopt1:: debian/stamp-binary-install-coinor-libipopt1
debian/stamp-binary-install-coinor-libipopt1:
	sed -i "s/^dependency_libs.*/dependency_libs=' '/" debian/tmp/usr/lib/coin/libipopt.la
	touch $@

build/coinor-libipopt-doc:: debian/stamp-build-coinor-libipopt-doc
debian/stamp-build-coinor-libipopt-doc:
	doxygen doxydoc/doxygen.conf
	$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map
	touch $@

get-orig-source:
	-uscan --rename --upstream-version 0
	@echo successfully retrieved upstream tarball

clean::
	$(RM) -r debian/stamp-* doxydoc/html
